import numpy as np
import matplotlib.pyplot as plt
x = np.arange(10)
y1 = x
y2 = x**2 + 3 * x + 4
y3 = 5 * x + 10
plt.title('关系图', fontproperties='SimHei')
plt.plot(x, y1, 'rs-', x, y2, 'b--', x, y3, 'go')
plt.show()
